package com.ms.player;

import java.util.Date;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.xpec.c4.game.utility.GameUtility;

/**
 * 客戶端回報紀錄
 */
public class ClientReport {
	
	@SerializedName("beginTime")
	@Expose
	private Date beginTime;
	
	@SerializedName("endTime")
	@Expose
	private Date endTime;
	
	@SerializedName("memo")
	@Expose
	private String memo;
	
	//是否為有效期內
	public boolean isReporting() {
		if(GameUtility.getCurrentDate().after(this.beginTime) && GameUtility.getCurrentDate().before(this.endTime))
			return true;
		else return false;
	}		
	
	public Date getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
